package com.kun.oa.mapper;

import com.kun.oa.entity.Permission;
import com.kun.oa.entity.Role;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * RoleMapper继承基类
 */
@Repository
public interface RoleMapper extends MyBatisBaseDao<Role, Integer, RoleExample> {

    Role findById(int id);

    int addPermissions(int id, int[] permissions);
}